/**
 * 统一错误类型
 */
import { testErrorMessages } from "./test";
import { commonErrorMessages } from "./common";
import { drugErrorMessages } from "./drug";
import { warehouseErrorMessages } from "./warehouse";
import { userErrorMessage } from "./user";

export type GlobalErrorTypes = keyof (typeof testErrorMessages &
  typeof commonErrorMessages &
  typeof warehouseErrorMessages &
  typeof userErrorMessage &
  typeof drugErrorMessages);
export const globalErrorMessages = {
  ...testErrorMessages,
  ...commonErrorMessages,
  ...drugErrorMessages,
  ...warehouseErrorMessages,
  ...userErrorMessage,
};
